<?
	foreach($grade_level_section_data as $glsd)
	{
		$glsd_id = $glsd->section_id;
		$glsd_section_name = $glsd->section_name;
		$glsd_gli = $glsd->grade_level_id;
		$glsd_ai = $glsd->adviser_id;	
		$glsd_ml = $glsd->max_load;	
	}
	$frm_att = array('class'=>'admin-form');
?>
<div class="row">
	<div class="panel callout">
		<h6>Update Section</h6>
	</div>
	<?if(isset($system_message))echo $system_message;
	echo validation_errors('<div class="error">', '</div>');
	?>
		<?echo form_open('rss-update-section/'.$glsd_id,$frm_att);?>
		
		<div class="row">
		<div class="large-4 columns">
			<label>Section Name:</label>
			<input type="text" name="section_name" value="<?=set_value('section_name',$glsd_section_name);?>">
		</div>
		</div>
		
		<div class="row">
		<div class="large-4 columns">
			<label>For Grade Level:</label>
			<?=form_dropdown('section_grade_level',$levels,$glsd_gli);?>
		</div>
		</div>

		<div class="row">
		<div class="large-4 columns">
			<label>Section Adviser:</label>
			<?=form_dropdown('section_employee_name',$teachers,$glsd_ai);?>
		</div>
		</div>
		
		<div class="row">
		<div class="large-4 columns">
			<label>Section Max Students:</label>
			<input type="number" name="max_student" min="0" max="60" value="<?=set_value('section_name',$glsd_ml);?>" required>
		</div>
		</div>
		
		<div class="row">
		<div class="large-4 columns">
			<?
				echo form_submit('update_section','Update Section','class="button tiny"');
				echo form_close();
			?>
			<a href="<?=site_url('rss-section');?>" class="btn btn-mini btn-success">back to List</a>
		</div>
		</div>
</div>
